package com.blog.service.base;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.transaction.annotation.Transactional;

import com.blog.domain.Post;
import com.blog.logger.LoggerBase;

@Service
@Transactional(rollbackFor=Throwable.class,transactionManager="transactionManager")
@EnableTransactionManagement
public abstract class BaseService extends LoggerBase {
//    @Transactional(rollbackFor=Throwable.class,transactionManager="transactionManager")
    public abstract List<Post> getPosts();
}
